<include file="Admin:header" />

<script src="__PUBLIC__/js/common.js" type="text/javascript"></script>
 <script type="text/javascript">
  function clear_del()
  {
   if(confirm("确定要删除数据吗？"))
   {
	subform("<{:U('Guestbook/delall')}>");
   }
  }
 </script>

<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">留言本管理</div></td>
      </tr>
    </table>

<div class="main">
    
    <div class="operate">
        <div class="left">
            <input type="button" onclick="window.open('__URL__/add','main')" target="main" class="btn_blue" value="添加">
				<input class="btn_blue" type="button" onClick="return clear_del();"  value="删除" />    
        </div>
        <if condition='ACTION_NAME eq "index"'>
        <div class="left_pad">
            <form method="get" action="__URL__/search">
                <input type="text" name="keyword" title="关键字" class="inp_default" value="">
                <input type="hidden" name="formhash" value="231cb4d8" />
                <input type="submit" class="btn_blue" value="查  询">
            </form>
        </div>
        </if>
    </div>
	
    <div class="list guestbook">    
    <form action="{:U(GROUP_NAME.'/Guestbook/delAll')}" method="post" id="form_do" name="form_do">
        <table width="100%">
            <tr>
                <th><input  name="chkall" type="checkbox" id="chkall" onclick="selectall(this.form)"></th>
                <th></th>
                <th>留言</th>
                <th>回复</th>
                <th>操作</th>
            </tr>
			<empty name="vlist">
			<tr>
			<td colspan="5"><div align="center">本区域暂无数据显示...</div></td>
			</tr>
			<else /> 
			
			<volist name='vlist' id='v'>
            <tr>
                <td><input type="checkbox" name="id[]" value="<{$v.id}>" ></td>
              <td>
                编号：<{$v.id}><br/>
                姓名：<{$v.gb_name}><br/>
                来自：<{$v.gb_ip}><br/>
				<if condition="$v['gb_tel']==null">
				<else />
				电话：<{$v.gb_tel}><br/>
				</if>
                
                E-mail：<a href="Mailto:<{$v.gb_email}>"><{$v.gb_email}></a>                </td>
                <td style="width:40%;word-break: break-all; word-wrap:break-word;">留言标题：<{$v.gb_title}><br />留言内容：<{$v.gb_content}><br/><{$v.gb_addtime|date='Y-m-d H:i:s', ###}></td>
				
                <td class="reply" style="width:30%;word-break: break-all; word-wrap:break-word;">
				<if condition="$v['gb_reply']==1">
				<{$v.gb_recontent}><br/>
				<{$v.gb_replytime|date='Y-m-d H:i:s', ###}>
				<else />
				</if>
				</td>
                <td style="width:100px;word-break: break-all; word-wrap:break-word;">
                    <a href="__URL__/reply/id/<{$v.id}>">回复</a>
                    <a href="__URL__/do_delect/id/<{$v.id}>" onclick="return confirm('是否确定删除?')">删除</a>
                </td>
            </tr>
            </volist>
			</empty> 
            
        </table>
		
		 <div class="green-black"><{$page}>总共<{$count}>条记录</div>
        
    </form>
    </div>
</div>
<include file="Pubilc:copyright" />
</body>
</html>
